home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tex / texindex.sty < prev    next >
LaTeX Document  |  1987-08-10  |  1.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: texindex.sty

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert DirectMusic Style (music/directMusicStyle) ext Unsupported
1% dexvert Microsoft Word Style Sheet (other/microsoftWordStyleSheet) ext Unsupported
1% dexvert Grand Theft Auto 2 Style data (other/grandTheftAuto2StyleData) ext Unsupported
1% dexvert KORG File (other/korgFile) ext Unsupported
1% dexvert MAGIX music studio Style (other/magixMusicStudioStyle) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX auxiliary file default
99% file LaTeX document text default
98% file LaTeX sorted index, ASCII text default (weak)
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 64 65 66 5c 6d 61 6b | 65 69 6e 64 65 78 7b 5c |\def\mak|eindex{\|
|00000010| 69 66 40 66 69 6c 65 73 | 77 20 5c 6e 65 77 77 72 |if@files|w \newwr|
|00000020| 69 74 65 5c 40 69 6e 64 | 65 78 66 69 6c 65 0a 20 |ite\@ind|exfile. |
|00000030| 20 5c 69 6d 6d 65 64 69 | 61 74 65 5c 6f 70 65 6e | \immedi|ate\open|
|00000040| 6f 75 74 5c 40 69 6e 64 | 65 78 66 69 6c 65 3d 5c |out\@ind|exfile=\|
|00000050| 6a 6f 62 6e 61 6d 65 2e | 69 64 78 0a 20 20 5c 64 |jobname.|idx. \d|
|00000060| 65 66 5c 69 6e 64 65 78 | 7b 5c 40 62 73 70 68 61 |ef\index|{\@bspha|
|00000070| 63 6b 5c 62 65 67 69 6e | 67 72 6f 75 70 5c 40 73 |ck\begin|group\@s|
|00000080| 61 6e 69 74 69 7a 65 5c | 40 77 72 69 6e 64 65 78 |anitize\|@wrindex|
|00000090| 5c 40 69 6e 64 65 78 66 | 69 6c 65 7d 5c 74 79 70 |\@indexf|ile}\typ|
|000000a0| 65 6f 75 74 0a 20 20 7b | 57 72 69 74 69 6e 67 20 |eout. {|Writing |
|000000b0| 69 6e 64 65 78 20 66 69 | 6c 65 20 5c 6a 6f 62 6e |index fi|le \jobn|
|000000c0| 61 6d 65 2e 69 64 78 20 | 7d 5c 66 69 7d 0a 0a 5c |ame.idx |}\fi}..\|
|000000d0| 64 65 66 5c 40 77 72 69 | 6e 64 65 78 23 31 23 32 |def\@wri|ndex#1#2|
|000000e0| 7b 5c 6c 65 74 5c 74 68 | 65 70 61 67 65 5c 72 65 |{\let\th|epage\re|
|000000f0| 6c 61 78 0a 20 20 20 5c | 78 64 65 66 5c 40 67 74 |lax. \|xdef\@gt|
|00000100| 65 6d 70 61 7b 5c 77 72 | 69 74 65 23 31 7b 5c 73 |empa{\wr|ite#1{\s|
|00000110| 74 72 69 6e 67 0a 20 20 | 20 20 20 20 3c 5c 74 68 |tring. | <\th|
|00000120| 65 70 61 67 65 3b 4e 3b | 50 3b 23 32 3e 7d 7d 5c |epage;N;|P;#2>}}\|
|00000130| 65 6e 64 67 72 6f 75 70 | 5c 40 67 74 65 6d 70 61 |endgroup|\@gtempa|
|00000140| 0a 20 20 20 5c 69 66 40 | 6e 6f 62 72 65 61 6b 20 |. \if@|nobreak |
|00000150| 5c 69 66 76 6d 6f 64 65 | 5c 6e 6f 62 72 65 61 6b |\ifvmode|\nobreak|
|00000160| 5c 66 69 5c 66 69 5c 40 | 65 73 70 68 61 63 6b 7d |\fi\fi\@|esphack}|
|00000170| 0a 0a 5c 64 65 66 5c 69 | 6e 64 65 78 7b 5c 40 62 |..\def\i|ndex{\@b|
|00000180| 73 70 68 61 63 6b 5c 62 | 65 67 69 6e 67 72 6f 75 |sphack\b|egingrou|
|00000190| 70 5c 40 73 61 6e 69 74 | 69 7a 65 5c 40 69 6e 64 |p\@sanit|ize\@ind|
|000001a0| 65 78 7d 0a 0a 5c 64 65 | 66 5c 40 69 6e 64 65 78 |ex}..\de|f\@index|
|000001b0| 7b 5c 40 69 66 6e 65 78 | 74 63 68 61 72 5b 7b 5c |{\@ifnex|tchar[{\|
|000001c0| 40 40 69 6e 64 65 78 7d | 7b 5c 40 40 69 6e 64 65 |@@index}|{\@@inde|
|000001d0| 78 5b 5d 7d 7d 0a 5c 64 | 65 66 5c 40 69 6e 64 65 |x[]}}.\d|ef\@inde|
|000001e0| 78 5b 23 31 5d 23 32 7b | 5c 65 6e 64 67 72 6f 75 |x[#1]#2{|\endgrou|
|000001f0| 70 5c 40 65 73 70 68 61 | 63 6b 7d 0a 0a 25 20 54 |p\@espha|ck}..% T|
|00000200| 68 69 73 20 69 73 20 74 | 68 65 20 70 6f 73 74 20 |his is t|he post |
|00000210| 70 72 6f 63 65 73 73 6f | 72 20 66 6f 72 20 74 68 |processo|r for th|
|00000220| 65 20 69 6e 64 65 78 69 | 6e 67 20 70 61 63 6b 61 |e indexi|ng packa|
|00000230| 67 65 0a 0a 5c 64 65 66 | 5c 69 6e 73 65 72 74 69 |ge..\def|\inserti|
|00000240| 6e 64 65 78 7b 5c 40 69 | 6e 70 75 74 7b 5c 6a 6f |ndex{\@i|nput{\jo|
|00000250| 62 6e 61 6d 65 2e 69 6e | 64 7d 7d 0a 0a 5c 64 65 |bname.in|d}}..\de|
|00000260| 66 5c 69 6e 64 65 78 53 | 74 61 72 74 7b 5c 62 65 |f\indexS|tart{\be|
|00000270| 67 69 6e 7b 74 68 65 69 | 6e 64 65 78 7d 5c 64 65 |gin{thei|ndex}\de|
|00000280| 66 5c 2c 7b 7d 7d 0a 5c | 64 65 66 5c 69 6e 64 65 |f\,{}}.\|def\inde|
|00000290| 78 45 6e 64 7b 5c 65 6e | 64 7b 74 68 65 69 6e 64 |xEnd{\en|d{theind|
|000002a0| 65 78 7d 7d 0a 0a 25 20 | 4c 65 61 76 65 20 73 70 |ex}}..% |Leave sp|
|000002b0| 61 63 65 20 62 65 74 77 | 65 65 6e 20 6c 65 74 74 |ace betw|een lett|
|000002c0| 65 72 73 20 6f 66 20 61 | 6c 70 68 61 62 65 74 20 |ers of a|lphabet |
|000002d0| 28 65 78 63 65 70 74 20 | 66 6f 72 20 74 68 65 20 |(except |for the |
|000002e0| 66 69 72 73 74 20 74 69 | 6d 65 29 0a 5c 64 65 66 |first ti|me).\def|
|000002f0| 5c 69 6e 64 65 78 43 68 | 61 72 23 31 7b 5c 64 65 |\indexCh|ar#1{\de|
|00000300| 66 5c 69 6e 64 65 78 43 | 68 61 72 23 23 31 7b 5c |f\indexC|har##1{\|
|00000310| 69 6e 64 65 78 73 70 61 | 63 65 7d 7d 0a 0a 25 20 |indexspa|ce}}..% |
|00000320| 54 68 69 73 20 68 61 63 | 6b 20 70 75 74 73 20 6f |This hac|k puts o|
|00000330| 75 74 20 74 68 65 20 63 | 72 6f 73 73 72 65 66 73 |ut the c|rossrefs|
|00000340| 2c 20 64 69 73 63 61 72 | 64 73 20 74 68 65 20 3c |, discar|ds the <|
|00000350| 66 6c 61 67 3e 0a 25 20 | 61 6e 64 20 6c 65 61 76 |flag>.% |and leav|
|00000360| 65 73 20 74 68 65 20 73 | 75 62 74 65 72 6d 73 20 |es the s|ubterms |
|00000370| 74 6f 20 62 65 20 72 65 | 61 64 20 6e 65 78 74 0a |to be re|ad next.|
|00000380| 5c 64 65 66 5c 69 6e 64 | 65 78 54 61 69 6c 23 31 |\def\ind|exTail#1|
|00000390| 23 32 23 33 7b 23 31 23 | 33 7d 0a 0a 25 20 54 68 |#2#3{#1#|3}..% Th|
|000003a0| 65 20 6d 61 69 6e 20 72 | 6f 75 74 69 6e 65 0a 5c |e main r|outine.\|
|000003b0| 64 65 66 5c 69 6e 64 65 | 78 45 6e 74 72 79 23 31 |def\inde|xEntry#1|
|000003c0| 23 32 23 33 7b 5c 69 66 | 63 61 73 65 23 31 5c 69 |#2#3{\if|case#1\i|
|000003d0| 74 65 6d 5c 6f 72 5c 73 | 75 62 69 74 65 6d 5c 6f |tem\or\s|ubitem\o|
|000003e0| 72 5c 73 75 62 73 75 62 | 69 74 65 6d 5c 65 6c 73 |r\subsub|item\els|
|000003f0| 65 0a 5c 40 6c 61 74 65 | 78 65 72 72 7b 54 6f 6f |e.\@late|xerr{Too|
|00000400| 20 64 65 65 70 20 69 6e | 64 65 78 20 6e 65 73 74 | deep in|dex nest|
|00000410| 69 6e 67 7d 7b 49 6e 64 | 65 78 20 6c 65 76 65 6c |ing}{Ind|ex level|
|00000420| 73 20 61 72 65 20 74 6f | 6f 20 6e 65 73 74 65 64 |s are to|o nested|
|00000430| 20 74 6f 6f 20 64 65 65 | 70 2e 5e 5e 4a 0a 49 20 | too dee|p.^^J.I |
|00000440| 63 61 6e 20 6f 6e 6c 79 | 20 68 61 6e 64 6c 65 20 |can only| handle |
|00000450| 73 75 62 2d 73 75 62 2d | 65 6e 74 72 69 65 73 2e |sub-sub-|entries.|
|00000460| 5e 5e 4a 0a 50 72 6f 63 | 65 65 64 20 61 6e 64 20 |^^J.Proc|eed and |
|00000470| 74 68 61 74 27 73 20 77 | 68 61 74 20 79 6f 75 27 |that's w|hat you'|
|00000480| 6c 6c 20 67 65 74 2e 7d | 5c 66 69 0a 23 32 5c 69 |ll get.}|\fi.#2\i|
|00000490| 6e 64 65 78 54 61 69 6c | 23 33 7d 0a |ndexTail|#3}. |
+--------+-------------------------+-------------------------+--------+--------+